<?php

namespace app\wechat\controllers;

use app\wechat\core\BaseController;
use app\wechat\interfaces\InspectorInterface;
use app\wechat\models\InspectorModel;
use cm;

class InspectorController extends BaseController implements InspectorInterface
{
    /*
    * 登陆
    */
    function actionLogin()
    {
        return (new InspectorModel())->actionLogin();
    }

    /*
    *是否登录
    */
    function actionIslogin()
    {
        return (new InspectorModel())->actionIslogin(); 
    }

    /*
    *检票列表
    */
    function actionList()
    {

        return (new InspectorModel())->actionList();
    }

    /*
    *订单详情
    */
    function actionInfo()
    {
        return (new InspectorModel())->actionInfo();        
    }

    /*
    *检票
    */
    function actionChecking()
    {
        return (new InspectorModel())->actionChecking();        
    }

    /*
    *检票端
    */
    function actionIndex()
    {

        $this->layout = false;
        return Cm::$res->render($this, "index", [], '首页');
    }

    /*
     * 检票班次列表
    */
    function actionShiftlist()
    {
        set_time_limit(0);
        ini_set('memory_limit', '1024M');
        return (new InspectorModel())->actionShiftlist();    
    }

    /*
    *检票客户列表
    */
    function actionPassengerlist()
    {
        return (new InspectorModel())->actionPassengerlist();    
    }
}